package com.wing.device.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import com.wing.device.model.entity.MaintenanceExecute;
import com.wing.device.model.request.MaintenanceExeDetailForm;
import com.wing.device.model.response.MaintenanceExecuteVo;

import java.util.Map;

/**
 * @version 1.1.0
 * @Author hz
 * @Date 2024-08-22 10:40
 **/
public interface DeviceMaintenanceExecuteService extends IService<MaintenanceExecute> {
    /**
     * 查询任务执行记录
     * @param pg
     * @param map
     * @return
     */
    IPage<MaintenanceExecuteVo> pageList4app(Page<MaintenanceExecuteVo> pg, Map map);

    /**
     * 处理临时任务
     * @param form
     * @return
     */
    int addTemporaryTaskBy(MaintenanceExeDetailForm form);

    /**
     * 添加认领任务
     * @param form
     * @return
     */
    int addGettingTaskBy(MaintenanceExeDetailForm form);

    /**
     * 查询我的执行记录
     * @param pg
     * @param map
     * @return
     */
    IPage<MaintenanceExecuteVo> pageList4app_My(Page<MaintenanceExecuteVo> pg, Map map);
}
